//接口
window.pathJoin = function (path1, path2) {
    return path1 + path2;
};
//var SERVER_PATH = 'http://192.168.1.104/vehicle_query';
var SERVER_PATH = 'http://hanbin.iok.la';

var Interface = {};
Interface.QUERY = pathJoin(SERVER_PATH, '/Weixin/Index/SelectQuery');//车牌号查询
Interface.GET_CARLIST = pathJoin(SERVER_PATH, '/Weixin/Index/GetCarNoList');//获取车牌号列表
Interface.ADMIN_CARLIST = pathJoin(SERVER_PATH, '/Weixin/Admin/GetCarNoList');//admin获取车牌号列表
Interface.UpdateCarNoInfo = pathJoin(SERVER_PATH, '/Weixin/Admin/UpdateCarNoInfo');//admin获取车牌号列表
//消息提示
function message(msg){
    layer.open({
        content: msg
        ,skin: 'msg'
        ,time: 2 //2秒后自动关闭
    });
}
//url转换成对象
var paraObj = {};
var readUrlToParams = function () {
    var url = location.href;
    var nameValue;
    var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
    for (var i = 0; nameValue = paraString[i]; i++) {
        var name = nameValue.substring(0, nameValue.indexOf("=")).toLowerCase();
        var value = nameValue.substring(nameValue.indexOf("=") + 1, nameValue.length);
        if (value.indexOf("#") > -1) {
            value = value.split("#")[0];
        }
        paraObj[name] = value;
    }
};